<template>
    <div>
        <h1>这是一个标题</h1>    
    </div>    
</template>
<script>
    export default {
        data(){
            return {}
        }
    }
</script>

<style scoped>
    div{
        background-color: greenyellow;
    }
    div>h1{
        color: red;
    }
</style>